package edu.midir.demo.pojo.exception;

import edu.midir.demo.pojo.enumeration.CommonEnum;

public class CheckException extends RuntimeException{
    private static final long serialVersionUID = 7722047927480348731L;
    protected String code;
    public CheckException(CommonEnum commonEnum){
        super(commonEnum.getMsg());
        this.code = commonEnum.getCode();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
